<div class="profile" ng-controller="ProfileWalletCtrl" ng-init="initWalletRecords()">
  <div class="wallet-header">
    <ul class="table text-center">
      <li class="table-cell">
        <p class="font-lg blue">￥&nbsp;{{wallet.balance/100 | number:2}}</p>
        <p class="font-sm gray-darker">账户余额</p>
      </li>
      <li class="table-cell">
        <p class="font-lg blue">￥&nbsp;{{wallet.totalIncome/100 | number:2}}</p>
        <p class="font-sm gray-darker">累计赚取</p>
      </li>
      <li class="table-cell">
        <p class="font-lg blue">￥&nbsp;{{wallet.cashOut/100 | number:2}}</p>
        <p class="font-sm gray-darker">累计取现</p>
      </li>
    </ul>
  </div>
  <div class="wallet-container">
    <h1 class="title">收支明细</h1>
    <div id="list-warp" class="list-warp">
      <div class="list" infinite-scroll="loadMore()" infinite-refresh="refresh()" infinite-scroll-distance="1" infinite-scroll-target="#list-warp" infinite-scroll-disabled="{{loading}}">
        <div ng-show="{{walletRecords.length == 0}}">
          <p class="text-center clearfix">暂无记录</p>
        </div>
        
        <div class="item" ng-repeat="walletRecord in walletRecords" ng-show="{{walletRecords.length != 0}}">
          <p ng-if="walletRecord.type  == '取现'">
            <span class="pull-left gray">{{walletRecord.occurTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
            <span class="pull-right danger"><font color="red">￥&nbsp;-{{walletRecord.money/100 | number:2}}</font>（{{walletRecord.type}}）</span>
          </p>
   		  <p ng-if="walletRecord.type  != '取现'">
            <span class="pull-left gray">{{walletRecord.occurTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
            <span class="pull-right"><font color="green">￥&nbsp;{{walletRecord.money/100 | number:2}}</font>（{{walletRecord.type}}）</span>
          </p>
        </div>
        
      </div>
    </div>

  </div>
  <div class="wallet-footer fixed fixed-bottom">
    <div class="table table-2">
      <div class="table-cell">
        <a class="blue" href="#/{{customerId}}/profile/wallet/withdrawal">立即提现</a>
      </div>
      <div class="table-cell">
        <a class="blue" href="#/advertisements?customerId={{customerId}}">马上赚钱</a>
      </div>
    </div>
  </div>
</div>
